package cn.coisini.model.common.dtos;

import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * @author xiangshaw
 * Description: 分页通用返回
 */
@Tag(name = "分页通用返回")
@Getter
@Setter
public class PageResponseResult<T> extends Result<T> implements Serializable {
    @Schema(description = "当前页")
    private Integer currentPage;
    @Schema(description = "每页显示条数")
    private Integer size;
    @Schema(description = "总条数")
    private Integer total;

    public PageResponseResult(Integer currentPage, Integer size, Integer total) {
        this.currentPage = currentPage;
        this.size = size;
        this.total = total;
    }
}


